#ifndef PROFILEVIEW_H
#define PROFILEVIEW_H

#include <QDockWidget>

#include "qgsmapcanvas.h"
#include "qgsmaptool.h"

class QgsMapLayer;

namespace Ui {
    class ProfileView;
}

class ProfileView : public QDockWidget
{
    Q_OBJECT

public:
    explicit ProfileView(QWidget *parent = 0);
    ~ProfileView();    
public slots:
    bool loadProject(QString fileName);
    void zoomToMainExtent();
    void mapPan();
    void zoomIn();
    void zoomOut();
    void fullExtent();
    void setLineLoopEventID(QString lleid);

private:
    class Tools
    {
    public:
        QgsMapTool *Pan;
        QgsMapTool *ZoomIn;
        QgsMapTool *ZoomOut;
    } mapTool;
    Ui::ProfileView *ui;
    QString lineloopEventID;
    //QString extentToWKT(QgsRectangle theExtent);
    QgsMapCanvas *mapCanvas;
    QMap<QgsMapLayer*, QString> defaultSql;
};

#endif // PROFILEVIEW_H
